package com.dmz.czykt;

import cn.hutool.extra.spring.SpringUtil;
import com.dmz.czykt.run.CzyktServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @author lee
 */
@SpringBootApplication
public class CzyktApplication {
    public static void main(String[] args) {
        SpringApplication.run(CzyktApplication.class, args);
        ApplicationContext applicationContext = SpringUtil.getApplicationContext();
        CzyktServer bean = applicationContext.getBean(CzyktServer.class);
        bean.startServer();
    }
}
